package net.zjitc.pojo;

import java.util.List;

/**
 * Created by Administrator on 2017/12/13.
 */
public class Order {
    private String oid;  //订单号
    private double total; //订单总价格
    private String ordertime; //下单时间
    private int state; //订单状态  （未付款，已经付款(未发货)，发货，完成交易）
    //收货人的信息，（下单者和收货者不一定是同一个人）
    private String name;
    private String phone;
    private String addr;
    //订单的所有者，（谁下的单）
    private User user;

    //订单 与订单子项  一对多
    private List<Orderitem> orderitemList;

    public List<Orderitem> getOrderitemList() {
        return orderitemList;
    }

    public void setOrderitemList(List<Orderitem> orderitemList) {
        this.orderitemList = orderitemList;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public String getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(String ordertime) {
        this.ordertime = ordertime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public void add(Order order) {

    }
}
